<?php

//报名查询
class BmController extends FrontBaseC {

    //报名记录查询(product_id)
    public function actionLookup() {
        $this->layout = 'theme.views.layouts.FrontNoFixedContent';
        SeoWord::setWord($this, 'getCatSeo', 'baoming');
        $product_id = Yii::app()->request->getParam('product_id');
        $good_id = Yii::app()->request->getParam('goods_id');
        if (empty($good_id) && empty($product_id)) {
            $this->assign('lookup', 1)
                    ->render();
            exit;
        }
        if (IS_POST) {
            $this->redirect(self::U('user/goodsbm/query', array('product_id' => $product_id)));
            exit;
        }
    }

}
